#Makefile2.6
#ifneq ($(KERNELRELEASE),)
#kbuild syntax. dependency relationship of files and target modules are listed here.
obj-m := newproc.o 
newproc-objs := fib_rules.o fib_hash.o \
	 	route.o inetpeer.o protocol.o \
	    	ip_input.o ip_fragment.o ip_forward.o ip_options.o \
	     	ip_output.o ip_sockglue.o inet_hashtables.o \
		inet_timewait_sock.o inet_connection_sock.o \
	     	tcp.o tcp_input.o tcp_output.o tcp_timer.o tcp_ipv4.o \
	     	tcp_minisocks.o \
	     	datagram.o raw.o udp.o udplite.o \
	     	arp.o icmp.o devinet.o af_inet.o  igmp.o \
	     	fib_frontend.o fib_semantics.o \
	     	ipmr.o inet_fragment.o

#else
PWD :=$(shell pwd)
KEVER ?=$(shell uname -r)
#KDIR :=/home/wfg/linux-2.6.26.3/$(KEVER)/build
KDIR := /usr/src/linux-headers-$(shell uname -r)
all:
	$(MAKE) -C $(KDIR) M=$(PWD)
clean:
	rm -rf .*.cmd *.o *.mod.c *.ko .tmp_versions *.order *symvers
#endif 
